package sjms.create.factory.method;

public class Test {
    public static void main(String[] args) {
        Factory studentFactory = new StudentFactory();
        Factory teacherFactory = new TeacherFactory();

        Work studentWork = studentFactory.getWorkObject();
        Work teacherWork = teacherFactory.getWorkObject();
        studentWork.work();
        teacherWork.work();
    }
}
